package com.qdxwx.data.mapper.course;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.course.CourseFile;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface CourseFileMapper {

    CourseFile selectById(int id);

    List<CourseFile> selectList(@Param("e") CourseFile query, @Param("page") PageRequest page);

    int selectCount(@Param("e")CourseFile query);

    int insert(CourseFile courseFile);

    int deleteById(int id);

    int deleteByCourseId(int courseId);
}
